import Layout from "@/views/layout.vue";

export default {
    routes: [
        {
            path: "/",
            component: Layout,
            redirect: "/home",
            children: [
                {
                    path: "/home",
                    name: 'home',
                    meta: {
                        title: "年度重点工作",
                        index: 1,
                    },
                    component: () => import("@/views/yearWork/index.vue"),
                },
                {
                    path: "/addOrEdit",
                    name: 'addOrEdit',
                    meta: {
                        title: "新增",
                        index: 2,
                    },
                    component: () => import("@/views/yearWork/form/addOrEdit.vue"),
                },
                {
                    path: "/updateTask",
                    name: 'updateTask',
                    meta: {
                        title: "更新任务计划",
                        index: 2,
                    },
                    component: () => import("@/views/yearWork/form/updateTask.vue"),
                },
                {
                    path: "/updateFinished",
                    name: 'updateFinished',
                    meta: {
                        title: "更新完成情况",
                        index: 2,
                    },
                    component: () => import("@/views/yearWork/form/updateFinished.vue"),
                },
                {
                    path: "/updateExplain",
                    name: 'updateExplain',
                    meta: {
                        title: "更新需要说明事项",
                        index: 2,
                    },
                    component: () => import("@/views/yearWork/form/updateExplain.vue"),
                },
                {
                    path: "/updateRemark",
                    name: 'updateRemark',
                    meta: {
                        title: "更新备注",
                        index: 2,
                    },
                    component: () => import("@/views/yearWork/form/updateRemark.vue"),
                },
                {
                    path: "/history",
                    name: 'history',
                    meta: {
                        title: "业务变更记录",
                        index: 2,
                    },
                    component: () => import("@/views/yearWork/form/history.vue"),
                }
            ],
        },
    ]
}
